package com.fangngng.pushall.service;


import com.fangngng.pushall.dto.Result;
import com.fangngng.pushall.entity.User;

/**
 * @author fei.fang
 * @date 2020/1/10
 **/
public interface LoginService {

    /**
     * 注册
     * @param email
     * @param password
     * @param validateCode
     * @return
     */
    Result<User> register(String email, String password, String validateCode, String nickName);

    /**
     * 登录
     * @param email
     * @param password
     * @return
     */
    Result<String>  login(String email, String password);

    String getJwtToken(String userName, Boolean isRememberMe);

}
